package com.erp.module.faHuoDanJu

import android.content.Context
import com.erp.bean.FaHuoBean
import com.erp.Interface.OnUserDataInterface
import com.erp.pull.PullP
import com.erp.pull.PullView

/**
 * Created by Administrator on 2018/12/10/010.
 * 作者：刘洋
 * 单据上传接口
 */
interface FaHuoDanJuContract {
    interface FaHuoKView : PullView {
    }

    interface FaHuoKP : PullP {
        //获取根据车次号数据
        fun getCarNumble(carnumble: String, iscarnumble: Boolean)
    }

    interface FaHuoMP {
        //获取供应材料质量列表
        fun getCarShuJu(context: Context, page: Int, pagesize: Int, carnumble: String, iscarnumble: Boolean, onUserDataInterface: OnUserDataInterface)

        //搜索车次号，获取订单号
        fun getdanju(context: Context, car_name: String, onUserDataInterface: OnUserDataInterface)

        //上传发货清单和物流单据照片
        fun addFaHuo(context: Context, car_numble: String, shop_name: String, listphoto: List<FaHuoBean.photo>, deletephoto: List<FaHuoBean.photo>, type: Int, onUserDataInterface: OnUserDataInterface)

        //获取单据列表
        fun getdanju(type : Int ,context : Context ,page : Int ,pagesize : Int ,zhuanmaidian : String ,baohao : String ,onUserDataInterface : OnUserDataInterface )

        //上传专卖店排序
        fun setcarweight(context : Context ,fahuobean : FaHuoBean ,onUserDataInterface : OnUserDataInterface )

        //上传专卖店订单排序
        fun setshoponumweight(context : Context ,fahuobean : FaHuoBean , position: Int ,onUserDataInterface : OnUserDataInterface )
    }

    interface FaHuoCarKView {
        //搜索车次号获取专卖店数据成功
        fun SouSuoCarOk()
        //搜索车次号专卖店数据失败
        fun SouSuoCarNo()
        //点击专卖店
        fun dowZhuanMaiDian(position: Int)
//        点击单据上传
//        fun dowPhoto(position: Int)
        //点击上传物流单据
        fun downWuliu(position: Int)
        //点击上传发货单据
        fun downFahuo(position: Int)
    }

    interface FaHuoCarKP {
        //搜索车次号获取专卖店数据
        fun SouSuoCar(car : String)
        //上传专卖店排序
        fun postshopweight()
        //上传专卖店订单排序
        fun postonumweight(position: Int)
    }

    interface AddFaHuoKP {
        //添加发货清单
        fun AddPhoto(list : List<FaHuoBean.photo>, deletelist: List<FaHuoBean.photo>)
    }

    interface MyFaHuoView: PullView{

    }

    interface MyFaHuoP: PullP{
        fun sousuo(zhuanmaidian : String ,baohao:String)
    }
}
